package com.company.cloud.club.modules.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class LayTableResult<T> implements Serializable {

    private Integer code;

    private String message;

    private List<T> list = new ArrayList<>();

    private Integer total;

    public LayTableResult() {}

    public LayTableResult(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public LayTableResult(Integer code, String message, List<T> list, Integer total) {
        this.code = code;
        this.message = message;
        this.list = list;
        this.total = total;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }
}
